package com.itcg.springboot01demo02;

import com.itcg.utils.EnableHeaderConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

//自动配置实现方案一: @Component + @ComponentScan
//@ComponentScan( basePackages = {"com.itcg","com.itcg.springboot01demo02"}) 普通类
//自动配置实现方案二:
//@Import(DeploysConfig.class) //配置类
//自动配置实现方案三:
//@Import(MyImportSelector.class) //实现ImportSelector实现类
//自动配置实现方案四:
@EnableHeaderConfig //使用注解的方式,在注解里面写@Import(DeploysConfig.class),就类似写配置类
@SpringBootApplication

public class Springboot01Demo02Application {

    public static void main(String[] args) {
        SpringApplication.run(Springboot01Demo02Application.class, args);
    }

}
